public class Shop {
    private String name;
    private double size;
    private double price;
    private int num;
    private static int count=0;
    private static int sum=0;
    private static double sum_price=0.0;
    public Shop(){
        count++;
    }
    public Shop(String name,double size,double price,int num){
        this.name=name;
        this.size=size;
        this.price=price;
        this.num=num;
        sum+=num;
        sum_price+=price*num;
        count++;
    }
    public void show(){
        System.out.print(name);
        for(int i=0;i<(17-name.length());i++){
            System.out.print(" ");
        }
        System.out.print(size);
        for(int i=0;i<(10-Double.toString(size).length());i++){
            System.out.print(" ");
        }
        System.out.print(price);
        for(int i=0;i<(9-Double.toString(price).length());i++){
            System.out.print(" ");
        }
        System.out.println(num);
    }
    public static int getSum(){
        return sum;
    }
    public static double getSum_price(){
        return sum_price;
    }
}
